-- GENERATED SPELL FOR [Chain of Shadows] --


function spell0_21876(pUnit, Event) --@Enforced Submission,n/a--
pUnit:FullCastSpellOnTarget(37784,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21876', 629, 1)
end

function Sorts_21876(pUnit, Event)
local choix_sorts_21876 = math.random(0, 0)
if choix_sorts_21876 == 0 then
pUnit:RegisterEvent('spell0_21876', 1, 1)
end
end

function mob21876_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21876', math.random(1500, 3000), 1)
end

function mob21876_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21876_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21876_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21876, 1, 'mob21876_Action')
RegisterUnitEvent(21876, 2, 'mob21876_Leave')
RegisterUnitEvent(21876, 3, 'mob21876_Kill')
RegisterUnitEvent(21876, 4, 'mob21876_Die')
